xen.git
19 years agoFix handling of SXP for devices through device_add -- this solves the
Ewan Mellor [Sun, 29 Oct 2006 19:28:26 +0000 (19:28 +0000)]
Fix handling of SXP for devices through device_add -- this solves the
Invalid device (uname) problem that breaks just about everything once you've
done xm block-attach.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[XEND] Do not delete VNC password from configuration.
kaf24@localhost.localdomain [Fri, 27 Oct 2006 17:15:14 +0000 (18:15 +0100)]
[XEND] Do not delete VNC password from configuration.
Fixes reboot of HVM guest when VNC authentication is in use.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoImport Xend part of xen-unstable changeset
Ewan Mellor [Wed, 25 Oct 2006 14:29:08 +0000 (15:29 +0100)]
Import Xend part of xen-unstable changeset
11922:1e6b0a8a0822a22d313d9058fa0dc10c7a319821.

[IA64][HVM] Add buffer IO mechanism for Xen/VTi domain. Current
implementation can accelerate Windows guest's dense IO operations
at boot time.

Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
19 years agoPrint the time to xend-debug.log, when starting or restarting Xend.
Ewan Mellor [Wed, 25 Oct 2006 14:01:51 +0000 (15:01 +0100)]
Print the time to xend-debug.log, when starting or restarting Xend.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[XEND] Be more generous with the default shadow allocation.
Tim Deegan [Wed, 25 Oct 2006 10:44:58 +0000 (11:44 +0100)]
[XEND] Be more generous with the default shadow allocation.
Allow enough shadow memory to avoid thrashing the shadow pages,
rather than just enough for safety.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEND] Open xend-debug.log in append mode.
kfraser@localhost.localdomain [Wed, 25 Oct 2006 09:27:03 +0000 (10:27 +0100)]
[XEND] Open xend-debug.log in append mode.
Signed-off-by: John Levon <john.levon@sun.com>
19 years ago[XM] Print qualified path to config file on domain creation.
kfraser@localhost.localdomain [Mon, 23 Oct 2006 11:43:32 +0000 (12:43 +0100)]
[XM] Print qualified path to config file on domain creation.
From: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAllow domain config file to specify credit-scheduler parameters.
Ewan Mellor [Sat, 28 Oct 2006 17:08:43 +0000 (18:08 +0100)]
Allow domain config file to specify credit-scheduler parameters.

Imported from xen-unstable 11864:babae8ac84b95ff4fbc1cfe4ac27c59ceaba7e38,
with conflict resolution by Ewan Mellor.

Signed-off-by: Masami Watanabe <masami.watanabe@jp.fujitsu.com>
19 years agoImport the xen-unstable changeset
Ewan Mellor [Mon, 23 Oct 2006 11:23:57 +0000 (12:23 +0100)]
Import the xen-unstable changeset
11863:7633398447846679342b197a79bc375b996d9026, with conflict resolution by
Ewan Mellor.

[XM] Allow empty resource strings (e.g., when creating an empty CDROM
device). Also clean up error/acces-denied path.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[ACM] Don't use uninitialised struct value if hypercall fails.
kfraser@localhost.localdomain [Mon, 23 Oct 2006 08:57:24 +0000 (09:57 +0100)]
[ACM] Don't use uninitialised struct value if hypercall fails.
From: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEND] Remove lazy import of signal module.
kfraser@localhost.localdomain [Fri, 20 Oct 2006 10:00:08 +0000 (11:00 +0100)]
[XEND] Remove lazy import of signal module.
Signed-off-by: Jeremy Katz <katzj@redhat.com>
19 years agoImport the Xend parts of xen-unstable changeset
Ewan Mellor [Wed, 1 Nov 2006 10:30:02 +0000 (10:30 +0000)]
Import the Xend parts of xen-unstable changeset
11840:02506a7443155611d6bbf03e49fbf193e96d24db.

[HVM] Implement password authentication of VNC connections.

The specification is as mentioned at
http://lists.xensource.com/archives/html/xen-devel/2006-09/msg00666.html
(However, password came to describe plain text)

The difference is follows.
- protocol_authtype() without the necessity was deleted.
- The check on the protocol version was added.
- And, some small modification.

Signed-off-by: Masami Watanabe <masami.watanabe@jp.fujitsu.com>
19 years agoImport the Xend portion of xen-unstable changeset
Ewan Mellor [Fri, 20 Oct 2006 08:32:16 +0000 (09:32 +0100)]
Import the Xend portion of xen-unstable changeset
11839:328606e0705f0341bebda14cdd17962e463868e8.

Use the name of the title of the system to boot into (instead of the
kernel version) to determine where to make the entry into the grub
configuration file.

Signed-off-by: Reiner Sailer <sailer@us.ibm.com>
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoRaise an exception if blkdev_name_to_number fails, to improve the error message.
Ewan Mellor [Sat, 28 Oct 2006 16:58:00 +0000 (17:58 +0100)]
Raise an exception if blkdev_name_to_number fails, to improve the error message.

Fix came from Glauber de Oliveira Costa, and is one half of xen-unstable
11831:f5321161c649fe4f07027250c4a1f3c4b5fc2ed9.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[XM] Fix 'xm help' when called on a command-name prefix.
kfraser@localhost.localdomain [Thu, 5 Oct 2006 15:17:06 +0000 (16:17 +0100)]
[XM] Fix 'xm help' when called on a command-name prefix.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years ago[XEND] Fix pygrub when run server-side on a domain with blktap disks.
Ewan Mellor [Sat, 28 Oct 2006 16:45:43 +0000 (17:45 +0100)]
[XEND] Fix pygrub when run server-side on a domain with blktap disks.

Equivalent fix to xen-unstable 11706:bf0deb09facd847db87ab59ed377db6eb0f5a3ad.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoImport the Xend portion of xen-unstable changeset 11704:a95dfbc8dca8ecddcb9be51d78f44...
Ewan Mellor [Thu, 5 Oct 2006 13:53:29 +0000 (14:53 +0100)]
Import the Xend portion of xen-unstable changeset 11704:a95dfbc8dca8ecddcb9be51d78f446b0fa461892.

[HVM/vncserver] Implement a 'vnclisten' option to limit the interface
that the VNC server from qemu listens on.

Defaults to only listen on 127.0.0.1

The old behaviour (listen on all interfaces) can be restored, by
- changing the system-wide default in /etc/xen/xend-config.sxp by adding:
(vnc-listen '0.0.0.0')
- changing individual domain config files by adding:
vnclisten="0.0.0.0"

Also allows specifying the hostname associated with an interface to limit
to that interface.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
19 years ago[XEND] If 'vncused' is set, it won't specify an explicit display num to QEMU.
kaf24@firebug.cl.cam.ac.uk [Wed, 4 Oct 2006 08:42:41 +0000 (09:42 +0100)]
[XEND] If 'vncused' is set, it won't specify an explicit display num to QEMU.

In the current xen-unstable.hg tree tough, XenD will always pass an
explicit '-vnc <display num>' parameter to qemu-dm, regardless of
whether 'vncunused' is set. So the 'vncunused' bit only takes effect
if the explicitly passed display already has something bound to it.

Consider what happens when the host machine has been up for a while -
the Domain ID's start getting very high. This plays havoc with
firewalls - for example an admin may know that only 10 domains will
ever be running at any time, so they should be able to simply open up
ports 5900 -> 5910.

The correct behaviour should be:

   - If 'vncdisplay' is set, use that explicit display
   - If 'vncunused' is set non-zero, allocate first port about 5900
   - Allocate fixed port based on domain-ID

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
19 years ago[XM] Fix rmlabel filename assignment
Alastair Tse [Tue, 3 Oct 2006 10:24:48 +0000 (11:24 +0100)]
[XM] Fix rmlabel filename assignment

The patch fixes a bug in the rmlabel tool.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years ago[XM] Fix missing security check in block-attach
Alastair Tse [Tue, 3 Oct 2006 09:48:07 +0000 (10:48 +0100)]
[XM] Fix missing security check in block-attach

This patch fixes an indentation error in main.py. The effect of this
bug is that block-attach does not check labels if the ACM is
active. This bug slipped in with change set 11572_:_ ad22c711ccb7
<http://xenbits.xensource.com/xen-unstable.hg?cs=ad22c711ccb7>.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>

19 years agoThese are the proposed changes to XenD that adapt vTPM handling to the
Ewan Mellor [Sat, 28 Oct 2006 16:12:04 +0000 (17:12 +0100)]
These are the proposed changes to XenD that adapt vTPM handling to the
document and the implementation in the library. It's implementation is
now similar to VIF and VBD. The implementation passes the first 2 tests
in the vTPM- related tests in the xm-test suite.

Minor conflict resolution by Ewan Mellor.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agouint64_t replaced with int64_t everywhere.
Ewan Mellor [Sat, 28 Oct 2006 12:30:21 +0000 (13:30 +0100)]
uint64_t replaced with int64_t everywhere.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoThe structure fields should be exactly as documented, including case matching.
Ewan Mellor [Sat, 28 Oct 2006 11:15:40 +0000 (12:15 +0100)]
The structure fields should be exactly as documented, including case matching.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoImplement new VTPM model.
Ewan Mellor [Sat, 28 Oct 2006 11:14:47 +0000 (12:14 +0100)]
Implement new VTPM model.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoThe get_by_name_label functions return a set, not a singleton, because names
Ewan Mellor [Sat, 28 Oct 2006 11:04:08 +0000 (12:04 +0100)]
The get_by_name_label functions return a set, not a singleton, because names
are not guaranteed to be unique.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix marshalling to and from record_opts.
Ewan Mellor [Sat, 28 Oct 2006 11:00:02 +0000 (12:00 +0100)]
Fix marshalling to and from record_opts.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix freeing of records, when the given pointer is NULL.
Ewan Mellor [Sat, 28 Oct 2006 10:54:05 +0000 (11:54 +0100)]
Fix freeing of records, when the given pointer is NULL.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix the handling of sets in the interface -- expecting a pointer to X to serve
Ewan Mellor [Sat, 28 Oct 2006 10:50:35 +0000 (11:50 +0100)]
Fix the handling of sets in the interface -- expecting a pointer to X to serve
as a list of them was too hopeful -- that's what the set structures are for.

Based upon a patch by Jim Fehlig.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoThe on-wire names for the fields should be exactly as documented, including
Ewan Mellor [Sat, 28 Oct 2006 10:41:55 +0000 (11:41 +0100)]
The on-wire names for the fields should be exactly as documented, including
case.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoTidy.
Ewan Mellor [Sat, 28 Oct 2006 10:21:35 +0000 (11:21 +0100)]
Tidy.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoTidy.
Ewan Mellor [Sat, 28 Oct 2006 10:20:47 +0000 (11:20 +0100)]
Tidy.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove VTPM-related values, now obsolete.
Ewan Mellor [Fri, 27 Oct 2006 08:52:49 +0000 (09:52 +0100)]
Remove VTPM-related values, now obsolete.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove the get_all method from most classes -- we'd like people to be able to
Ewan Mellor [Thu, 26 Oct 2006 17:17:56 +0000 (18:17 +0100)]
Remove the get_all method from most classes -- we'd like people to be able to
get all VMs, for example, but for VBDs et al it doesn't really make sense.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoReplace the datamodel graph eps with a dot file.
Ewan Mellor [Thu, 26 Oct 2006 15:03:52 +0000 (16:03 +0100)]
Replace the datamodel graph eps with a dot file.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix VTPM bindings -- ints in the model are uint64_t at the C binding level.
Ewan Mellor [Thu, 26 Oct 2006 15:02:49 +0000 (16:02 +0100)]
Fix VTPM bindings -- ints in the model are uint64_t at the C binding level.
VM's, being referenced from the VTPM, have a backreferring set.  Remove the
implementation of the old, dead VTPM-related fields on VM.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoImplement new PIF-based network model, and match movement of I/O-statistics.
Ewan Mellor [Thu, 26 Oct 2006 14:59:51 +0000 (15:59 +0100)]
Implement new PIF-based network model, and match movement of I/O-statistics.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoImplement VDI.resize message.
Ewan Mellor [Thu, 26 Oct 2006 14:57:29 +0000 (15:57 +0100)]
Implement VDI.resize message.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoImplement HostCPU.{vendor,speed,modelname}.
Ewan Mellor [Thu, 26 Oct 2006 14:56:44 +0000 (15:56 +0100)]
Implement HostCPU.{vendor,speed,modelname}.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoImplement new VMX feature flag.
Ewan Mellor [Thu, 26 Oct 2006 14:53:31 +0000 (15:53 +0100)]
Implement new VMX feature flag.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded HostCPU.{vendor,speed,modelname}.
Ewan Mellor [Thu, 26 Oct 2006 14:49:57 +0000 (15:49 +0100)]
Added HostCPU.{vendor,speed,modelname}.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded VMX feature flag.
Ewan Mellor [Thu, 26 Oct 2006 14:48:44 +0000 (15:48 +0100)]
Added VMX feature flag.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoNew PIF class.
Ewan Mellor [Thu, 26 Oct 2006 14:47:46 +0000 (15:47 +0100)]
New PIF class.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove get_record_internal -- it's not needed at the binding level.
Ewan Mellor [Thu, 26 Oct 2006 14:46:46 +0000 (15:46 +0100)]
Remove get_record_internal -- it's not needed at the binding level.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRename VTPM.type to VTPM.driver, to match the libxen bindings.
Ewan Mellor [Thu, 26 Oct 2006 14:43:32 +0000 (15:43 +0100)]
Rename VTPM.type to VTPM.driver, to match the libxen bindings.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix network model by moving Network.NIC and Network.VLAN onto a new PIF class.
Ewan Mellor [Thu, 26 Oct 2006 14:35:18 +0000 (15:35 +0100)]
Fix network model by moving Network.NIC and Network.VLAN onto a new PIF class.
Also, merge network and disk bandwidth into a single io/ namespace.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRename get_by_label to get_by_name_label everywhere -- this was always the
Ewan Mellor [Thu, 26 Oct 2006 14:03:47 +0000 (15:03 +0100)]
Rename get_by_label to get_by_name_label everywhere -- this was always the
intended name.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded VDI.resize method.
Ewan Mellor [Thu, 26 Oct 2006 13:40:22 +0000 (14:40 +0100)]
Added VDI.resize method.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMake all Ref Sets DynamicRO -- they are implied by the existence of an instance
Ewan Mellor [Thu, 26 Oct 2006 13:39:34 +0000 (14:39 +0100)]
Make all Ref Sets DynamicRO -- they are implied by the existence of an instance
elsewhere, and cannot be modified directly.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoDatamodel changes adding some basic vTPM extensions to the API that
Ewan Mellor [Wed, 25 Oct 2006 19:44:01 +0000 (20:44 +0100)]
Datamodel changes adding some basic vTPM extensions to the API that
make its handling similar to that of VBD etc.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoFix preamble -- get_by_short_name is now called get_by_name_label.
Ewan Mellor [Wed, 25 Oct 2006 19:40:49 +0000 (20:40 +0100)]
Fix preamble -- get_by_short_name is now called get_by_name_label.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoImport Xen Management API Draft, 0.4.3, from
Ewan Mellor [Wed, 25 Oct 2006 19:34:26 +0000 (20:34 +0100)]
Import Xen Management API Draft, 0.4.3, from
http://wiki.xensource.com/xenwiki/XenApi

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoC bindings adding some basic vTPM extensions to the API that
Ewan Mellor [Wed, 25 Oct 2006 16:30:17 +0000 (17:30 +0100)]
C bindings adding some basic vTPM extensions to the API that
make its handling similar to that of VBD etc.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoThe session class has a lower-case S -- fix the C bindings to match.
Ewan Mellor [Wed, 25 Oct 2006 15:06:29 +0000 (16:06 +0100)]
The session class has a lower-case S -- fix the C bindings to match.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoSome updates to the README fixing the kernel.hvm devices config
Alastair Tse [Fri, 27 Oct 2006 15:46:27 +0000 (16:46 +0100)]
Some updates to the README fixing the kernel.hvm devices config

19 years ago[XEND] Fix some missing variables in XendDomain caught by pylint.
Alastair Tse [Fri, 27 Oct 2006 15:45:40 +0000 (16:45 +0100)]
[XEND] Fix some missing variables in XendDomain caught by pylint.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Fix missing SR references in XendAPI
Alastair Tse [Fri, 27 Oct 2006 15:44:15 +0000 (16:44 +0100)]
[XEND] Fix missing SR references in XendAPI

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years agoA survey of all the supported configuration options in Xend and also
Alastair Tse [Thu, 26 Oct 2006 18:43:11 +0000 (19:43 +0100)]
A survey of all the supported configuration options in Xend and also
what they map to in the Xen API.

19 years ago[XEND] Add more API implementations, add sched_id_get to xc.
Alastair Tse [Thu, 26 Oct 2006 16:59:49 +0000 (17:59 +0100)]
[XEND] Add more API implementations, add sched_id_get to xc.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years agoImport 83:b569bb25a8f08a15381b022ee143d7f205976604 from xen-api.hg, minus the
Ewan Mellor [Wed, 1 Nov 2006 10:12:13 +0000 (10:12 +0000)]
Import 83:b569bb25a8f08a15381b022ee143d7f205976604 from xen-api.hg, minus the
Makefile patch.

[XEND] Remove blank image file generation for QCOW images.

There is no need for a blank backing store, although this means we
have to find a new way to determine how much virtual disk space is
free in the StorageRepository.

Beginnings to attempt to supoprt HVM guests.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XENAPI] Add shell option for xapi.py so it can remember sessions.
Alastair Tse [Fri, 20 Oct 2006 12:35:25 +0000 (13:35 +0100)]
[XENAPI] Add shell option for xapi.py so it can remember sessions.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Fix KB allocation in XendStorageRepository
Alastair Tse [Fri, 20 Oct 2006 12:33:55 +0000 (13:33 +0100)]
[XEND] Fix KB allocation in XendStorageRepository

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Remove mistake of not checking xenstore's name entry for Dom0
Alastair Tse [Thu, 19 Oct 2006 16:48:54 +0000 (17:48 +0100)]
[XEND] Remove mistake of not checking xenstore's name entry for Dom0

Also fix logic with detecting whether devid is an int or not because
xm passes this as a string all the time.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Add some docstrings about XendAuthSessions
Alastair Tse [Thu, 19 Oct 2006 16:46:54 +0000 (17:46 +0100)]
[XEND] Add some docstrings about XendAuthSessions

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XM] Fix TypeError in exception handler if there is no res_label.
Alastair Tse [Thu, 19 Oct 2006 16:46:08 +0000 (17:46 +0100)]
[XM] Fix TypeError in exception handler if there is no res_label.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Switch to PAM authentication for login sessions
Alastair Tse [Thu, 19 Oct 2006 14:37:16 +0000 (15:37 +0100)]
[XEND] Switch to PAM authentication for login sessions
[XENAPI] Fix case difference in API for Host.* functions

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[ACM] Fix the resource representations in the resource_label
kfraser@localhost.localdomain [Wed, 18 Oct 2006 16:54:58 +0000 (17:54 +0100)]
[ACM] Fix the resource representations in the resource_label
file. Without this patch, multiple representations of the same
resource can co-exist in the resource label file and lead to errors
during operation.

Ensures that all resource file names are stored with absolute
path name and are unique. Setting labels of phy-resources, relative
paths will automatically be pre-pended with '/dev/'; labeling
file-resources with relative paths will raise an error.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>

19 years ago[SOLARIS] Xen daemons are managed separately, so we need a way to start
Alastair Tse [Thu, 19 Oct 2006 10:36:49 +0000 (11:36 +0100)]
[SOLARIS] Xen daemons are managed separately, so we need a way to start
just xend, and we need to disable xend's self-restarter.

Merged with Xen API Tree.

Signed-off-by: John Levon <john.levon@sun.com>
19 years ago[SOLARIS] The hotplug scripts live in a different place on Solaris.
Alastair Tse [Thu, 19 Oct 2006 10:35:09 +0000 (11:35 +0100)]
[SOLARIS] The hotplug scripts live in a different place on Solaris.

Add osdep.py module

Signed-off-by: John Levon <john.levon@sun.com>
19 years ago[SOLARIS] The hotplug scripts live in a different place on Solaris.
Alastair Tse [Thu, 19 Oct 2006 10:33:45 +0000 (11:33 +0100)]
[SOLARIS] The hotplug scripts live in a different place on Solaris.

Merged with Xen API Tree

Signed-off-by: John Levon <john.levon@sun.com>
19 years ago[SOLARIS] Add the correct machine name for Solaris to arch.py.
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:23:24 +0000 (18:23 +0100)]
[SOLARIS] Add the correct machine name for Solaris to arch.py.

Signed-off-by: John Levon <john.levon@sun.com>
19 years ago[XEND] Check for and fail on non-existent floppy-drive file when starting HVM guest.
kfraser@localhost.localdomain [Sun, 15 Oct 2006 08:19:26 +0000 (09:19 +0100)]
[XEND] Check for and fail on non-existent floppy-drive file when starting HVM guest.

The qemu device model hangs when a non-existent floppy file is passed
via 'fda' or 'fdb'. The attached patch checks whether the floppy file
exists and raises an error if it does not.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years ago[XEND] Add missing line from changeset 11653:3b7e11cbeb940
kfraser@localhost.localdomain [Tue, 10 Oct 2006 15:02:30 +0000 (16:02 +0100)]
[XEND] Add missing line from changeset 11653:3b7e11cbeb940
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEND] Re-add the tap prefix because it is needed.
Alastair Tse [Fri, 13 Oct 2006 17:36:25 +0000 (18:36 +0100)]
[XEND] Re-add the tap prefix because it is needed.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XENAPI] Make vm-destroy consistent with API naming. Moved what is
Alastair Tse [Fri, 13 Oct 2006 16:34:13 +0000 (17:34 +0100)]
[XENAPI] Make vm-destroy consistent with API naming. Moved what is
known as xm destroy to vm-shutdown --force.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Remove extra tap: prefix for device uname.
Alastair Tse [Fri, 13 Oct 2006 16:33:34 +0000 (17:33 +0100)]
[XEND] Remove extra tap: prefix for device uname.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Fix bugs in vbd_create logic when handling VDIs
Alastair Tse [Fri, 13 Oct 2006 16:17:45 +0000 (17:17 +0100)]
[XEND] Fix bugs in vbd_create logic when handling VDIs

Attempt to handle 'tap' devices as 'vbd' devices even though the
internal configuration has no idea that 'tap' is a subclass of 'vbd'.

Add option parsing to vbd-create and vdi-create so you can override
the configuration file options.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Fix some bad names left behind while converting all storage to
Alastair Tse [Fri, 13 Oct 2006 14:38:13 +0000 (15:38 +0100)]
[XEND] Fix some bad names left behind while converting all storage to
bytes rather than KB.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] XendVDI saves configuration on change.
Alastair Tse [Fri, 13 Oct 2006 14:34:01 +0000 (15:34 +0100)]
[XEND] XendVDI saves configuration on change.

Added a base class called AutoSaveObject that will attempt to call
save_config() if any attribute in the object changes. It isn't
particularly efficient, but we do not expect VDI to change much.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Updates to SR and VDI implementations
Alastair Tse [Fri, 13 Oct 2006 14:13:21 +0000 (15:13 +0100)]
[XEND] Updates to SR and VDI implementations

* Moved xenapi transport util method, stringify to xen.util.xmlrpclib2
* XenVDI now preserves configuration to an XML-ish file
* Update Xen API's class names to be all lowercase
* Update get_by_label to get_by_name_label and return sets as the API
  expects.
* Add support for VBD creation with a VDI reference.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Adding API stub generation to XendAPI + SR implementation for
Alastair Tse [Thu, 12 Oct 2006 17:51:17 +0000 (18:51 +0100)]
[XEND] Adding API stub generation to XendAPI + SR implementation for
Xen API.

Fixed *get_by_label functions to return a Set rather than only one
result.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Beginnings of the Xend Storage Repository implementation.
Alastair Tse [Thu, 12 Oct 2006 17:01:32 +0000 (18:01 +0100)]
[XEND] Beginnings of the Xend Storage Repository implementation.

Currently it is a basic repository that just creates images on demand
and wraps them as VDIs. Rudimentary support for querying the available
space using 'df'. Creates images via 'qcow-create' after creating an
empty image.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Removing this file from version control as it is now
Alastair Tse [Thu, 12 Oct 2006 17:00:01 +0000 (18:00 +0100)]
[XEND] Removing this file from version control as it is now
autogenerated via the distutils build script.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Fix interpretation of stringified 64 bit ints in
Alastair Tse [Thu, 12 Oct 2006 11:30:01 +0000 (12:30 +0100)]
[XEND] Fix interpretation of stringified 64 bit ints in
XendConfig. Rename Xen API classes, "Host" and "Host_CPU" to their
lowercase equivalent.

Apparent confusion in the docs as to what they should be named.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Add some sort of rudimentary version embedding into the source
Alastair Tse [Thu, 12 Oct 2006 11:27:56 +0000 (12:27 +0100)]
[XEND] Add some sort of rudimentary version embedding into the source
so we can report the Xend version number as opposed to Xen's version
number.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years agoGive our test VM a name with no space (Xend does not allow this at the moment).
ewan@linford.intra [Sat, 7 Oct 2006 17:22:48 +0000 (18:22 +0100)]
Give our test VM a name with no space (Xend does not allow this at the moment).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoImport libxen-src-0.4.3-2.tar.bz2.
ewan@linford.intra [Sat, 7 Oct 2006 17:22:09 +0000 (18:22 +0100)]
Import libxen-src-0.4.3-2.tar.bz2.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[XEND] Conform to Xen API XMLRPC Wire Protocol Customisation
Alastair Tse [Fri, 6 Oct 2006 21:50:29 +0000 (22:50 +0100)]
[XEND] Conform to Xen API XMLRPC Wire Protocol Customisation

1. Int(s) all have to be String(s).
2. Enums are not transmitted as Ints, but as Descriptive Strings.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XENAPI] Adding some rudimentary documentation about what has changed.
Alastair Tse [Fri, 6 Oct 2006 17:01:08 +0000 (18:01 +0100)]
[XENAPI] Adding some rudimentary documentation about what has changed.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Save device updates to VM configuration via Xen API
Alastair Tse [Fri, 6 Oct 2006 16:34:49 +0000 (17:34 +0100)]
[XEND] Save device updates to VM configuration via Xen API

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Fix check for whether domain is running.
Alastair Tse [Fri, 6 Oct 2006 15:40:39 +0000 (16:40 +0100)]
[XEND] Fix check for whether domain is running.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XENAPI] Support for VBD/VIF info listing in vm-list --long
Alastair Tse [Fri, 6 Oct 2006 15:30:35 +0000 (16:30 +0100)]
[XENAPI] Support for VBD/VIF info listing in vm-list --long

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Proper support for devices with UUID. Removing old workaround
Alastair Tse [Fri, 6 Oct 2006 15:27:06 +0000 (16:27 +0100)]
[XEND] Proper support for devices with UUID. Removing old workaround
with augmented VM UUIDs with devids.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XENAPI] Add missing function names. Proper sub command help messages.
Alastair Tse [Fri, 6 Oct 2006 11:46:46 +0000 (12:46 +0100)]
[XENAPI] Add missing function names. Proper sub command help messages.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XENAPI] Pretty print error messages, insert simple argument parsing
Alastair Tse [Fri, 6 Oct 2006 11:31:24 +0000 (12:31 +0100)]
[XENAPI] Pretty print error messages, insert simple argument parsing
framework

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Keep track of attached vbds and vifs for XenAPI
Alastair Tse [Fri, 6 Oct 2006 11:30:46 +0000 (12:30 +0100)]
[XEND] Keep track of attached vbds and vifs for XenAPI

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XENAPI] Fix wrong vars being extracted from reading python cfg
Alastair Tse [Fri, 6 Oct 2006 11:02:29 +0000 (12:02 +0100)]
[XENAPI] Fix wrong vars being extracted from reading python cfg

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XENAPI] Added hard shutdown (aka. vm-destroy)
Alastair Tse [Fri, 6 Oct 2006 10:57:16 +0000 (11:57 +0100)]
[XENAPI] Added hard shutdown (aka. vm-destroy)

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Remove annoying debugging messages
Alastair Tse [Fri, 6 Oct 2006 10:56:36 +0000 (11:56 +0100)]
[XEND] Remove annoying debugging messages

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XENAPI] Example tools to create/destroy/shutdown VMs
Alastair Tse [Fri, 6 Oct 2006 10:48:21 +0000 (11:48 +0100)]
[XENAPI] Example tools to create/destroy/shutdown VMs

Example Session:

xapi.py vm-list
xapi.py host-info
xapi.py vm-create xapi.domcfg.py
xapi.py vbd-create GentooAPI xapi.vbdcfg.py
xapi.py vif-create GentooAPI xapi.vifcfg.py
xapi.py vm-start GentooAPI
xapi.py vm-shutdown GentooAPI
xapi.py vm-delete xapi.py

signed-off-by: Alastair Tse <atse@xensource.com>

19 years ago[XEND] Fix shutdown reasons from Xen API
Alastair Tse [Thu, 5 Oct 2006 19:03:16 +0000 (20:03 +0100)]
[XEND] Fix shutdown reasons from Xen API

Signed-off-by: Alastair Tse <atse@xensource.com>